<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home extends Member_Controller {

    function __construct()
    {
      parent::__construct();
    }

    function index()
    {
        $session_data = $this->session->userdata('logged_in');
        $data['username'] = $session_data['username'];
        $data['user_type']= $session_data['user_type'];
        $data['main_content']='home_view';
        $data['title']='Home';
        $this->load->view('layout/master', $data);

    }
    function logout()
    {
        $this->session->unset_userdata('logged_in');
        $this->session->sess_destroy();
        redirect('login', 'refresh');
    }

}
//end of home.php